/* Copyright (c) [2025] [zhi1208@126.com]
 * SPDX-License-Identifier: MIT
 */

/*********************
 *      INCLUDES
 *********************/
#include "lvgl.h"
#include "hmi_assets.h"

/*********************
 *      DEFINES
 *********************/

/**********************
 *      TYPEDEFS
 **********************/

/**********************
 *  STATIC PROTOTYPES
 **********************/

/**********************
 *  STATIC VARIABLES
 **********************/

/**********************
 *      MACROS
 **********************/

/**********************
 *   GLOBAL FUNCTIONS
 **********************/
char *hmi_png(const char *png_name)
{
    static char asset_path[HMI_ASSETS_PATH_LEN_MAX];
    lv_snprintf(asset_path, HMI_ASSETS_PATH_LEN_MAX, "%c:" HMI_ASSETS_PATH_BASE "%s.png", HMI_ASSETS_FS_LETTER, png_name);
    return asset_path;
}

/**********************
 *   STATIC FUNCTIONS
 **********************/
